Skip to content

fix: add _mappings_sizes_weights_split to InterpolatorRectangular#262

Merged
Jammy2211 merged 1 commit intomainfrom
feature/api-drift-fixes
Apr 10, 2026
Merged

fix: add _mappings_sizes_weights_split to InterpolatorRectangular#262
Jammy2211 merged 1 commit intomainfrom
feature/api-drift-fixes

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

  • The _mappings_sizes_weights_split cached property exists on InterpolatorKNN and InterpolatorDelaunay, but was missing from InterpolatorRectangular.
  • Any rectangular mesh + split regularization (ConstantSplit, AdaptSplit, AdaptSplitZeroth) combination raised AttributeError at runtime.
  • Rectangular pixelizations use bilinear interpolation which already factors in the 4-corner neighbourhood, so split regularization reuses the same mapping arrays.

Test plan

  • Run a rectangular mesh + ConstantSplit regularization fit from the autolens_workspace and confirm the inversion completes without error
  • CI passes

🤖 Generated with Claude Code

The property exists on InterpolatorKNN and InterpolatorDelaunay, but
was missing from InterpolatorRectangular, so any rectangular mesh +
split regularization (ConstantSplit, AdaptSplit, AdaptSplitZeroth)
combination raised AttributeError.

Rectangular pixelizations use bilinear interpolation which already
factors in the 4-corner neighbourhood, so split regularization reuses
the same mapping arrays.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit 88b86d3 into main Apr 10, 2026
2 checks passed
@Jammy2211 Jammy2211 deleted the feature/api-drift-fixes branch April 10, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant